﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link th:href="@{/administration/css/reset.css}" rel="stylesheet" />
    <link th:href="@{/administration/css/index.css}" rel="stylesheet" />
    <script th:src="@{/administration/js/jquery-1.9.1.min.js}"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            function login() {
                $.post("/login",
                    {uName:$("#uName").val(),uPwd:$("#uPwd").val()},
                    function (data) {
                    if (data=="正确"){
                        location.href="/toUserManagement";
                    }else {
                        alert(data);
                        location.href="/toIndex";}
                    }
                );
            }
            $("#login").click(
            function () {
                login();
            }
        )
        });
    </script>
    <title>登录页</title>
</head>
<body>
    <div class="LoginBox">
        <div class="VerticalCenteredBox">
            <div class="LoginHead">
                上海央谷管理系统
            </div>
            <div class="LoginUserBoxOut ">
                <div class="LoginUserBox mar_top30">
                    <span>请输入账号</span>
                    <input class="LoginUserInput" name="uName" id="uName" placeholder="请输入账号" />
                </div>
            </div>
            <div class="LoginUserBoxOut">
                <div class="LoginUserBox">
                    <span>请输入密码</span>
                    <input class="LoginUserInput" name="uPwd" id="uPwd" placeholder="请输入密码" type="password" />
                </div>
            </div>

            <div class="LoginUserBoxOut">

                <div class="LoginLastBox clearfix">
                 <!--
                    <div class="leftBox">
                        <input id="inputcheck" class="inputcheck" type="checkbox" name="inputcheck" />
                        <label for="inputcheck"></label>
                        <span>下次自动登录</span>
                    </div>
                    -->


                      <!--  <div class="RightBox">
                            <input type="button" value="登录"  id="login" />
                        </div>-->

                    <a id="login">
                        <div class="RightBox">
                            登录
                        </div>
                    </a>

                </div>
            </div>
        </div>
    </div>

</body>
</html>